/* eslint-disable no-mixed-spaces-and-tabs */
/*路由器模块 */
import Vue from 'vue'
import VueRouter from 'vue-router'
// import Position from '@/components/Clock/Position.vue'

import ForgetPwd from '@/views/Login/ForgetPwd'
import FirstPage from '@/views/FirstPage/FirstPage'
import Register from '@/views/Register/Register'
import Login from '@/views/Login/Login'

import manage from "@/views/Manage/manage.vue"
import questionnaireList from "@/views/Manage/questionnaireList.vue"
import recyclebin from "@/views/Manage/recyclebin.vue"
//import test from "@/views/test.vue"

// import NormalQn from '@/views/CreateQuestionnaire/Normal/NormalQn'
import Design from '@/views/Design/Design.vue'
import Set from '@/views/Set/Set'
import Send from '@/views/Send/Send'
import Guide from '@/views/Guide/Guide.vue'
import Analysis from '@/views/Analysis/Analysis.vue'
import PreviewFinal from '@/views/Preview/PreviewFinal'
import Final from '@/views/Preview/Final'

import PositionBM from '@/components/Clock/PositionBM'

// 考试问卷
import ExamEdit from "@/views/CreateQuestionnaire/Exam/ExamEdit";
// 投票 问卷
import VoteEdit from '@/views/CreateQuestionnaire/Vote/VoteEdit'
//普通问卷
import NormalEdit from '@/views/CreateQuestionnaire/Normal/NormalEdit'
//疫情问卷
import YiQingEdit from '@/views/CreateQuestionnaire/YiQing/YiQingEdit'
//报名问卷
import EnrollEdit from '@/views/CreateQuestionnaire/Enroll/EnrollEdit'


import Exam from '@/views/CreateQuestionnaire/Exam/Exam'
import NormalFinish from '@/views/Finish/NormalFinish'
import ExamFinish from '@/views/Finish/ExamFinish'
import VoteFinish from '@/views/Finish/VoteFinish'
import ClockFinal from '@/views/Clock/ClockFinal'
import EnrollFinal from '@/views/Preview/EnrollFinal'


//import Position from '@/components/Clock/Position'
Vue.use(VueRouter)

//import { stringifyQuery, parseQuery } from "./utils/query";
const router = new VueRouter({
	mode: 'history',
    //n个路由
	/*
	base: process.env.BASE_URL,
    stringifyQuery: stringifyQuery,
    parseQuery: parseQuery,
    */
	routes: [
		{
			path: '/',
			component: FirstPage
		},
		{
            path:'/login',
            component:Login
        },
        {
            path:'/register',
            component:Register
        },
        {
            path:'/forgetpassword',
            component:ForgetPwd
        },
		{
          	path: '/manage',
          	component: manage,
			name: '',
			children: [{
				path: '',
				component: questionnaireList
			}, {
				path: '/recyclebin',
				component: recyclebin
			}]
      	},
		{
			path:'/examedit',
			component:ExamEdit,
		},
		{
			path: '/test',
			component: PositionBM
		},
		{
			path: '/examquestionnare',
			name: 'examquestionnare',
			component: ExamEdit
			// component: NormalQn
		},
		{
			path:'/votequestionnare',
			name:'votequestionnare',
			component: VoteEdit
		},
		{
			path:'/yiqingquestionnare',
			name:'yiqingquestionnare',
			component:YiQingEdit
		},
		{
			path:'/applyquestionnare',
			name:'applyquestionnare',
			component:EnrollEdit
		},
		{
			path:'/normalquestionnare',
			name:'normalquestionnare',
			component:NormalEdit
		},
		{
			path: '/design',
			name: 'design',
			component: Design,
			children: [
				{
					path: '/design/guide',
					name: 'guide',
					component: Guide
				},
				{
					path: '/design/set',
					component: Set
				},
				{
					path: '/design/send',
					name: 'send',
					component: Send
				},
				{
					path: '/design/analysis',
					name: 'analysis',
					component: Analysis
				}
			],
			
		},
		{
			path:'/preview',
			name: 'preview',
			component:PreviewFinal
		},
		{
			path:'/final',
			component:Final
		},
		{
			path:'/exam',
			component:Exam
		},
		{
			path:'/normalfinish',
			component:NormalFinish
		},
		{
			path:'/examfinish',
			component:ExamFinish
		},
		{
			path:'/votefinish',
			component:VoteFinish
		},
		{
			path:'/clockfinal',
			component:ClockFinal
		},
		{
			path:'/enrollfinal',
			component:EnrollFinal
		},
		
    ],
	
})

export default router